package com.qiulingcloud.order.service.feign;

import com.qiulingcloud.commonsserver.entity.SysUser;
import com.qiulingcloud.order.service.feign.fallback.FeignUserServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author：zhangqiang
 * @Description：
 * @Date：Created in 18:19 2020/5/3
 * @Modified By：
 */
@FeignClient(value = "qiuling-sys", fallbackFactory = FeignUserServiceFallback.class)
public interface FeignUserService {

    @GetMapping("feign/user/userInfo/{userId}")
    SysUser gerUserByUserId(@PathVariable("userId") String userId);
}
